473,441 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,441 software developers and data experts.

Simple Question about Pop-Out Menus

I'm trying my hand at developing a new website for my professional career,
and am trying to implement a simple Rollover > Pop-out Menu system, and am
finding the javascript confusing to do. I am using Photoshop and
Dreamweaver/Fireworks, and have all of my normal and over button graphics
finished, and created one simple pop-out in Fireworks.

My problem is getting both the swap image in javascript onMouseOver event,
and the menu event to run at the same time. How is this usually done? Can
you add two functions to one java event?

Like:
<a href="#" onMouseOver="swapimagefunction();"
onMouseOver="menufunction();">

Or is that illegal?

Thanks a ton for any helpful info.

Ty
Jul 20 '05 #1
4 1587
: My problem is getting both the swap image in javascript onMouseOver event,
: and the menu event to run at the same time. How is this usually done? Can
: you add two functions to one java event?

: <a href="#" onMouseOver="swapimagefunction();"
: onMouseOver="menufunction();">

you can do it like this:

<img src="blurimage.gif" name="menuItem"
onMouseOver="swapImage();ShowMenu();"
onMouseOut="swapImageBack();CloseMenu();" alt="Menu Item">
Wouter
Jul 20 '05 #2
Thanks a ton, I'll try that out. Problem is I'm simply telling Dreamweaver
to create a RollOver image and giving it the two Normal and Over images done
in photoshop.... so it creates the javascript, and it works no problem. Then
I'm telling Fireworks to create a pop-up menu and creating the html and
javascript for that, and am not sure how to use the images I'm already using
for the RollOver for the Menu as well.... and I'll probably be here all
night figuring it out.

Any other advice, please let me know, and I'll continue to check this.

Ty

"DJ WIce" <contextmenu @ djwice.com> wrote in message
news:bv**********@news.tudelft.nl...
: My problem is getting both the swap image in javascript onMouseOver event, : and the menu event to run at the same time. How is this usually done? Can : you add two functions to one java event?

: <a href="#" onMouseOver="swapimagefunction();"
: onMouseOver="menufunction();">

you can do it like this:

<img src="blurimage.gif" name="menuItem"
onMouseOver="swapImage();ShowMenu();"
onMouseOut="swapImageBack();CloseMenu();" alt="Menu Item">
Wouter

Jul 20 '05 #3
: Any other advice, please let me know, and I'll continue to check this.
Oh in that case;

if you have 2 mouseover events in one link:
make it one with ; between the function names:

<a href="#" onMouseOver="swapimagefunction();"
onMouseOver="menufunction();">

Becomes:

<a href="#" onMouseOver="swapimagefunction();menufunction();">

that should work (if they do not use the same global variable for 2
differant things).

Wouter

:
: Ty
:
: "DJ WIce" <contextmenu @ djwice.com> wrote in message
: news:bv**********@news.tudelft.nl...
: > : My problem is getting both the swap image in javascript onMouseOver
: event,
: > : and the menu event to run at the same time. How is this usually done?
: Can
: > : you add two functions to one java event?
: >
: > : <a href="#" onMouseOver="swapimagefunction();"
: > : onMouseOver="menufunction();">
: >
: > you can do it like this:
: >
: > <img src="blurimage.gif" name="menuItem"
: > onMouseOver="swapImage();ShowMenu();"
: > onMouseOut="swapImageBack();CloseMenu();" alt="Menu Item">
: >
: >
: > Wouter
: >
: >
:
:
Jul 20 '05 #4
Thanks, appreciated!

"DJ WIce" <contextmenu @ djwice.com> wrote in message
news:bv**********@news.tudelft.nl...
: Any other advice, please let me know, and I'll continue to check this.
Oh in that case;

if you have 2 mouseover events in one link:
make it one with ; between the function names:

<a href="#" onMouseOver="swapimagefunction();"
onMouseOver="menufunction();">

Becomes:

<a href="#" onMouseOver="swapimagefunction();menufunction();">

that should work (if they do not use the same global variable for 2
differant things).

Wouter

:
: Ty
:
: "DJ WIce" <contextmenu @ djwice.com> wrote in message
: news:bv**********@news.tudelft.nl...
: > : My problem is getting both the swap image in javascript onMouseOver
: event,
: > : and the menu event to run at the same time. How is this usually done? : Can
: > : you add two functions to one java event?
: >
: > : <a href="#" onMouseOver="swapimagefunction();"
: > : onMouseOver="menufunction();">
: >
: > you can do it like this:
: >
: > <img src="blurimage.gif" name="menuItem"
: > onMouseOver="swapImage();ShowMenu();"
: > onMouseOut="swapImageBack();CloseMenu();" alt="Menu Item">
: >
: >
: > Wouter
: >
: >
:
:

Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: C GIllespie | last post by:
Dear all, I'm new to both python and OOP, so could I ask a simple question. I have class: class species: __init__(self,pop=0): self.pop=pop
2
by: Senraba | last post by:
I would like to have a 600 X 400 window open with search results from CPanel's Entropy Search form. I have the following in the <HEAD> tag: <script language="javascript"...
14
by: Josh | last post by:
I was wondering if anyone could point me in the direction for information to solve the following problems with my site (under development). The URL is...
3
by: Thomas Ibbotson | last post by:
I've been going through a tutorial on C++ and I've come across what I regard as some strange behaviour. As part of the tutorial on classes a simple stack is implemented with functions push() and...
12
by: Marmagya | last post by:
Hi, Why should the following code give me a core dump? #include <stdio.h> int main(){ char *a="Marmagya"; printf("The statement is : %s", *a);
10
by: Fred | last post by:
Hi all ! Newbie in C programming needs help please ... I have a Windows console application written in C who ask a password on the command line . I want to change the original code to ask the...
8
by: Bryan Feeney | last post by:
This structure is, according to sizeof, 3 bytes long, which makes sense struct test { char text; }; This structure is, according to sizeof, 4 bytes long, which also makes sense struct...
33
by: hermit_crab67 | last post by:
Can someone explain to a C newbie why this doesn't work as I expect it to work? (expectations clearly outlined in the printf statement in main routine) OS: Linux 2.4.26 GCC: 2.95.4 void...
2
by: Preston | last post by:
public Abc test() { if (oneStack.Count != 0) return (Abc)oneStack.Peek(); } I'd like to do return (Abc)oneStack.Peek()first, and then do receiveStack.Pop()
17
by: Chris M. Thomasson | last post by:
I use the following technique in all of my C++ projects; here is the example code with error checking omitted for brevity: _________________________________________________________________ /*...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.